﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Omu.AwesomeMvc;

namespace MvcApplication4.Controllers
{
    public class MotivoAjaxDropdownController : Controller
    {
        public ActionResult GetItems(int? v, int? parent)
        {
            return Json(
                new List<SelectableItem>
                    {
                        new SelectableItem("CAMPANHA", "CAMPANHA" ,selected: true),
                        new SelectableItem("ROTINA", "ROTINA")
                    }      
                );// key, text, selected
        }

    }
}
